package com.ruoyi.xyh.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.xyh.mapper.EventReleMapper;
import com.ruoyi.xyh.domain.EventRele;
import com.ruoyi.xyh.service.IEventReleService;

/**
 * 活动发布Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-26
 */
@Service
public class EventReleServiceImpl implements IEventReleService 
{
    @Autowired
    private EventReleMapper eventReleMapper;

    /**
     * 查询活动发布
     * 
     * @param id 活动发布主键
     * @return 活动发布
     */
    @Override
    public EventRele selectEventReleById(Long id)
    {
        return eventReleMapper.selectEventReleById(id);
    }

    /**
     * 查询活动发布列表
     * 
     * @param eventRele 活动发布
     * @return 活动发布
     */
    @Override
    public List<EventRele> selectEventReleList(EventRele eventRele)
    {
        return eventReleMapper.selectEventReleList(eventRele);
    }

    /**
     * 新增活动发布
     * 
     * @param eventRele 活动发布
     * @return 结果
     */
    @Override
    public int insertEventRele(EventRele eventRele)
    {
        return eventReleMapper.insertEventRele(eventRele);
    }

    /**
     * 修改活动发布
     * 
     * @param eventRele 活动发布
     * @return 结果
     */
    @Override
    public int updateEventRele(EventRele eventRele)
    {
        return eventReleMapper.updateEventRele(eventRele);
    }

    /**
     * 批量删除活动发布
     * 
     * @param ids 需要删除的活动发布主键
     * @return 结果
     */
    @Override
    public int deleteEventReleByIds(Long[] ids)
    {
        return eventReleMapper.deleteEventReleByIds(ids);
    }

    /**
     * 删除活动发布信息
     * 
     * @param id 活动发布主键
     * @return 结果
     */
    @Override
    public int deleteEventReleById(Long id)
    {
        return eventReleMapper.deleteEventReleById(id);
    }
}
